<template>
  <!-- <div
    v-if="$store.getters.popParams.name==='FZC'"
    :style="{ top: posY + 'px', left: posX + 'px' }"
    class="pop-wrap"
  >
    <div class="pop-row">
      <span class="key">名称：</span>
      <span class="valeu">{{ remarks.ADNM }}</span>
    </div>
    <div class="pop-row">
      <span class="key">房屋数：</span>
      <span class="valeu">{{ remarks.HOUSE }}</span>
    </div>
    <div class="pop-row">
      <span class="key">人口数：</span>
      <span class="valeu">{{ remarks.PCOUNT }}</span>
    </div>
  </div> -->
    <div>
      <div
        v-show=" $store.getters.popParams.name === '户主'"
        :style="{ top: posY + 'px', left: posX + 'px' }" class='pop-wrap'
      >
        <div v-for="(item, index) in remarks" :key="index" class="pop-row ">
          <span v-show="item.name != null" class="key">{{ item.name }}：</span>
          <span class="value">{{ item.value }}</span>
        </div>
      </div>
      <div
        v-show="$store.getters.popParams.name === '通用'"
        :style="{ top: posY+10 + 'px', left: posX+10 + 'px' }" class='pop-wrapTwo'
      >
        <div v-for="(item, index) in remarks" :key="index" class="pop-row">
          <span v-show="item.name != null" class="key">{{ item.name }}：</span>
          <span class="value">{{ item.value }}</span>
        </div>
      </div>
    </div>
</template>
<script>
import pop from '../mixins/pop'
export default {
    name: 'Pop',
    mixins: [pop],
    computed: {
        remarks: function() {
            return this.$store.getters.popParams.remarks
        }
    }
}
</script>

<style lang="scss" scoped>
.pop-wrap {
  position: absolute;
  //background:url('~@/assets/imgNew/pophuzhu.png') no-repeat;
  //background-size: 100% 100%;
  background: rgba(0,45,191,0.75);
  border: 1px solid #00FFFF;
  opacity: 0.9;
  padding: 10px;
  z-index: 5;
  border-radius: 6px;
  // min-width: 150px;
  max-width: 280px;
}
.pop-wrapTwo {
  position: absolute;
  //background: rgba(0, 18, 42, 0.7);
  background: rgba(0,45,191,0.75);
  border: 1px solid #00FFFF;
  opacity: 0.9;
  //border: 1px solid rgba(63, 157, 198, 0.7);
  padding: 10px;
  z-index: 5;
  border-radius: 6px;
  // min-width: 150px;
  max-width: 280px;
}

.pop-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 20px;
  .key {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 400;
    // line-height: 0px;
    color: #d5d5d5;
  }
  .value {
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    // line-height: 0px;
    color: #ffffff;
  }
  .unit {
    margin-left: 5px;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 400;
    // line-height: 0px;
    color: #d5d5d5;
  }
}
.pop-wrap .pop-row:nth-child(1){
  font-weight: bold ;
  color: #FFFFFF ;
  background: linear-gradient(90deg, rgba(0, 255, 255,0.5) 0%, rgba(0,255,255,0) 100%) ; 
  padding: 4px;
  .key{
      font-weight: bold ;
      color: #FFFFFF ;
    }
  .value{
      font-weight: bold ;
      color: #FFFFFF ;
    }
}
.pop-wrapTwo .pop-row:nth-child(1){
  font-weight: bold;
  color: #FFFFFF;
  .key{
    font-weight: bold ;
    color: #FFFFFF ;
  }
  .value{
      font-weight: bold ;
      color: #FFFFFF ;
  }
}


</style>
<!-- .pop-wrapTwo .pop-row{
  font-weight: bold;
  color: #FFFFFF;
  background:linear-gradient(90deg, #00FFFF 0%, rgba(0,255,255,0) 100%)  !important; 
} -->